import request from '@/utils/request'

// 上传文件返回docx文件流
export const upload = (data) => {
  return request({
    method: 'POST',
    url: '/upload',
    data,
    headers: {
      'Content-Type': 'multipart/form-data' // 设置请求头为formData格式
    },
    responseType: "blob",
  });
};